import { flagOptions, timeOptions } from "@/constants"
import type { IllnessTimeEnum } from "@/enums"

//格式化就诊和患病时间
export const formatIllnessTime = (value?: IllnessTimeEnum) => {
  const obj = timeOptions.find(item => item.value === value)
  return obj?.label
}
export const formatConsultFlag = (flag?: 0 | 1) => {
  const obj = flagOptions.find(item => item.value === flag)
  return obj?.label
}